package com.yj.oa.mapper;

import com.yj.oa.entity.system.YMWhitelist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Copyright 2017 (C) Yunjian-VC
 * Created on : 2017/12/25
 * Author     : Unbelievable9
 **/
@Repository
@Mapper
public interface YMWhitelistMapper {

    @Select("SELECT * FROM ym_whitelist " +
            "WHERE ym_user_phone = #{phone} " +
            "LIMIT 1")
    YMWhitelist getByPhone(@Param("phone") String phone);
}
